package ooday02;

public class ExtendsTest {
    public static void main(String[] args) {
        Student zg = new Student();
        zg.name = "张光";
        zg.age = 23;
        zg.address = "高新区";
        zg.className = "jsd123123";
        zg.stuId = "001";
        zg.eat();
        zg.sleep();
        zg.sayHi();
        zg.study();

        Student ll = new Student("李林",22,"青秀区","jsd23434","002");
        ll.eat();
        ll.sleep();
        ll.sayHi();
        ll.study();

        Teacher xx = new Teacher("小晓",25,"西乡塘",1323);
        xx.eat();
        xx.sleep();
        xx.sayHi();
        xx.teach();

        Doctor hf = new Doctor("黄非",23,"东安区","高级");
        hf.eat();
        hf.sleep();
        hf.sayHi();
        hf.cut();

        Person p = new Person();
        p.name = "好人";
        p.age = 12;
        p.address = "不知道";
        p.eat();
        p.sleep();
        p.sayHi();

    }
}
